package com.nxj.sqlSession;

import java.util.List;

public interface SqlSession {

    public <E> List<E> selectList(String statementId, Object... params) throws Exception;

    public <T> T selectOne(String statementId, Object... params) throws Exception;

    public boolean deleteByCondition(String statementId, Object... params) throws Exception;

    public int updateByCondition(String statementId, Object... params) throws Exception;

    public boolean insertOneObject(String statementId, Object... params) throws Exception;

    public <T> T getMapper(Class<T> mapperClass);

    public void close() throws Exception;
}
